class CreateMetaDatas < ActiveRecord::Migration
  def self.up
    create_table :meta_datas do |t|
      t.column :content_id, :integer, :null => false
      t.column :key, :string, :null => false
      t.column :value, :string, :limit => 255
    end
    add_index :meta_datas, :content_id
  end

  def self.down
    drop_table :meta_datas
  end
end
